package com.maixun.lib_base.upfile

import com.maixun.lib_network.base.NetworkApi
import okhttp3.Interceptor

/**
 * 作者：Lmoumou
 * 时间：2020/7/14 10:53
 */
class UpFileNetWork: NetworkApi() {
    companion object {
        @Volatile
        private  var instance: UpFileNetWork?=null

        private fun getInstance(): UpFileNetWork {
            return instance ?: synchronized(this) {
                instance ?: UpFileNetWork().also { instance = it }
            }
        }

        fun getService(): UpFileService {
            return getInstance().getRetrofit(UpFileService::class.java).create(UpFileService::class.java)
        }
    }

    override fun getInterceptor(): Interceptor? {
        return null
    }
}